Home } Forms } Credit Card Validation



Validates a credit card number the user enters based on the rules of that card such as the value of first digit, the number of digits, as well as several other computations. Useful for online order form validation. Note: Although this form does not capture your credit card information, if you do not feel comfortable entering your credit card number to test this script, please DO NOT !
Note: JavaScript Source Code 2002 is not responsible for the use, misuse, or abuse of this Credit Card Validation JavaScript program. No sensitive information is collected by the JavaScript demonstration on this page.

However, if you do not feel comfortable entering your personal credit
card information to test this script, we ask that you DO NOT ENTER IT !



Card Number:
Card Type:
Expiration Date: Month Year (Range: 1997~2020)

JavaScript Source Code 2002: Forms: Credit Card Validation

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!